package com.founder.gateway.orm.fzapi.bean.entity;
import javax.persistence.*;
import com.founder.gateway.orm.fzapi.bean.mapper.ApiEntityMapper;
import com.founder.gateway.system.bean.DbConnStructure;
import com.founder.gateway.orm.fzapi.bean.dto.ApiEntityDto;
import org.setu.framework.bean.EntityBean;
import org.setu.framework.jdbc.annotation.TableInfo;
import org.setu.framework.annotation.description.SetuDescription;
/**
 * 
 * @author: hfl 
 */

@Entity
@Table(name="api_entity")
@TableInfo(dbConn=DbConnStructure.DC$GATEWAY,dbName=DbConnStructure.fz_api)
public class ApiEntityEntity extends EntityBean<ApiEntityEntity,ApiEntityDto,ApiEntityMapper>{

	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.AUTO,generator="UUIDGenerator")
	@Column(name="id",length=100,nullable=false,columnDefinition="varchar")
	@SetuDescription(describe="主键")
	private String id;

	@Column(name="appName",length=255,columnDefinition="varchar")
	@SetuDescription(describe="app名称")
	private String appName;

	@Column(name="groupName",length=255,columnDefinition="varchar")
	@SetuDescription(describe="分组名称")
	private String groupName;

	@Column(name="apiId",length=100,nullable=false,columnDefinition="varchar")
	@SetuDescription(describe="api_id")
	private String apiId;

	@Column(name="method",length=10,columnDefinition="varchar")
	@SetuDescription(describe="请求方法")
	private String method;

	@Column(name="automaticEntity",length=1,columnDefinition="bit")
	@SetuDescription(describe="是否是基于数据库配置的自动处理方法")
	private String automaticEntity;

	@Column(name="impleMode",length=10,columnDefinition="varchar")
	@SetuDescription(describe="实现方式(RESTFul,WebService)")
	private String impleMode;

	@Column(name="protocol",length=10,columnDefinition="varchar")
	@SetuDescription(describe="协议(http)")
	private String protocol;

	@Column(name="url",length=500,columnDefinition="varchar")
	@SetuDescription(describe="路径")
	private String url;

	@Column(name="authentication",length=100,nullable=false,columnDefinition="varchar")
	@SetuDescription(describe="认证方式（basic、bearer，bearer会创建session）")
	private String authentication;

	@Column(name="status",length=10,columnDefinition="varchar")
	@SetuDescription(describe="状态（发布，编辑）")
	private String status;

	@Column(name="valid",length=1,columnDefinition="varchar")
	@SetuDescription(describe="生效（0是，1否）")
	private String valid;

	@Column(name="version",length=10,columnDefinition="varchar")
	@SetuDescription(describe="版本号")
	private String version;

	@Temporal(TemporalType.DATE)
	@Column(name="xtLrsj",length=0,columnDefinition="date")
	@SetuDescription(describe="录入时间")
	private String xtLrsj;

	@Column(name="xtLrrxm",length=50,columnDefinition="varchar")
	@SetuDescription(describe="录入人姓名")
	private String xtLrrxm;

	@Column(name="xtLrrid",length=32,columnDefinition="varchar")
	@SetuDescription(describe="录入人ID")
	private String xtLrrid;

	@Column(name="xtLrip",length=15,columnDefinition="varchar")
	@SetuDescription(describe="录入IP")
	private String xtLrip;

	@Temporal(TemporalType.DATE)
	@Column(name="xtZhxgsj",length=0,columnDefinition="date")
	@SetuDescription(describe="最后修改时间")
	private String xtZhxgsj;

	@Column(name="xtZhxgrxm",length=50,columnDefinition="varchar")
	@SetuDescription(describe="最后修改人姓名")
	private String xtZhxgrxm;

	@Column(name="xtZhxgrid",length=32,columnDefinition="varchar")
	@SetuDescription(describe="最后修改人ID")
	private String xtZhxgrid;

	@Column(name="xtZhxgip",length=15,columnDefinition="varchar")
	@SetuDescription(describe="最后修改IP")
	private String xtZhxgip;

	@Column(name="xtZxbz",length=1,columnDefinition="tinyint")
	@SetuDescription(describe="注销标志")
	private String xtZxbz;

	@Column(name="xtZxyy",length=50,columnDefinition="varchar")
	@SetuDescription(describe="注销原因")
	private String xtZxyy;

	public ApiEntityEntity(){
	}

	public void setId(String id){
		this.id=id;
	}

	public String getId(){
		return this.id;
	}

	public void setAppName(String appName){
		this.appName=appName;
	}

	public String getAppName(){
		return this.appName;
	}

	public void setGroupName(String groupName){
		this.groupName=groupName;
	}

	public String getGroupName(){
		return this.groupName;
	}

	public void setApiId(String apiId){
		this.apiId=apiId;
	}

	public String getApiId(){
		return this.apiId;
	}

	public void setMethod(String method){
		this.method=method;
	}

	public String getMethod(){
		return this.method;
	}

	public void setAutomaticEntity(String automaticEntity){
		this.automaticEntity=automaticEntity;
	}

	public String getAutomaticEntity(){
		return this.automaticEntity;
	}

	public void setImpleMode(String impleMode){
		this.impleMode=impleMode;
	}

	public String getImpleMode(){
		return this.impleMode;
	}

	public void setProtocol(String protocol){
		this.protocol=protocol;
	}

	public String getProtocol(){
		return this.protocol;
	}

	public void setUrl(String url){
		this.url=url;
	}

	public String getUrl(){
		return this.url;
	}

	public void setAuthentication(String authentication){
		this.authentication=authentication;
	}

	public String getAuthentication(){
		return this.authentication;
	}

	public void setStatus(String status){
		this.status=status;
	}

	public String getStatus(){
		return this.status;
	}

	public void setValid(String valid){
		this.valid=valid;
	}

	public String getValid(){
		return this.valid;
	}

	public void setVersion(String version){
		this.version=version;
	}

	public String getVersion(){
		return this.version;
	}

	public void setXtLrsj(String xtLrsj){
		this.xtLrsj=xtLrsj;
	}

	public String getXtLrsj(){
		return this.xtLrsj;
	}

	public void setXtLrrxm(String xtLrrxm){
		this.xtLrrxm=xtLrrxm;
	}

	public String getXtLrrxm(){
		return this.xtLrrxm;
	}

	public void setXtLrrid(String xtLrrid){
		this.xtLrrid=xtLrrid;
	}

	public String getXtLrrid(){
		return this.xtLrrid;
	}

	public void setXtLrip(String xtLrip){
		this.xtLrip=xtLrip;
	}

	public String getXtLrip(){
		return this.xtLrip;
	}

	public void setXtZhxgsj(String xtZhxgsj){
		this.xtZhxgsj=xtZhxgsj;
	}

	public String getXtZhxgsj(){
		return this.xtZhxgsj;
	}

	public void setXtZhxgrxm(String xtZhxgrxm){
		this.xtZhxgrxm=xtZhxgrxm;
	}

	public String getXtZhxgrxm(){
		return this.xtZhxgrxm;
	}

	public void setXtZhxgrid(String xtZhxgrid){
		this.xtZhxgrid=xtZhxgrid;
	}

	public String getXtZhxgrid(){
		return this.xtZhxgrid;
	}

	public void setXtZhxgip(String xtZhxgip){
		this.xtZhxgip=xtZhxgip;
	}

	public String getXtZhxgip(){
		return this.xtZhxgip;
	}

	public void setXtZxbz(String xtZxbz){
		this.xtZxbz=xtZxbz;
	}

	public String getXtZxbz(){
		return this.xtZxbz;
	}

	public void setXtZxyy(String xtZxyy){
		this.xtZxyy=xtZxyy;
	}

	public String getXtZxyy(){
		return this.xtZxyy;
	}

}
